-- GENERATED SPELL FOR [Steam Surger] --


function spell0_21696(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(37252,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21696', 670, 1)
end

function spell1_21696(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(39412,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21696', 669, 1)
end

function Sorts_21696(pUnit, Event)
local choix_sorts_21696 = math.random(0, 1)
if choix_sorts_21696 == 0 then
pUnit:RegisterEvent('spell0_21696', 1, 1)
end
if choix_sorts_21696 == 1 then
pUnit:RegisterEvent('spell1_21696', 1, 1)
end
end

function mob21696_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21696', math.random(1500, 3000), 1)
end

function mob21696_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21696_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21696_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21696, 1, 'mob21696_Action')
RegisterUnitEvent(21696, 2, 'mob21696_Leave')
RegisterUnitEvent(21696, 3, 'mob21696_Kill')
RegisterUnitEvent(21696, 4, 'mob21696_Die')
